#include "dialogselgaussiannoise.h"
#include "ui_dialogselgaussiannoise.h"

DialogSelGaussianNoise::DialogSelGaussianNoise(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogSelGaussianNoise)
{
    ui->setupUi(this);
}

DialogSelGaussianNoise::~DialogSelGaussianNoise()
{
    delete ui;
}

float DialogSelGaussianNoise::getGaussianNoiseVariance()
{
    if(!ui->textEditVariance->toPlainText().compare(""))
    {
        return 100;
    }
    else
    {
        return ui->textEditVariance->toPlainText().toFloat();
    }

}

float DialogSelGaussianNoise::getGaussianNoiseMean()
{
    if(!ui->textEditMean->toPlainText().compare(""))
    {
        return 0;
    }
    else
    {
        return ui->textEditMean->toPlainText().toFloat();
    }
}
